'use strict'

module.exports = app => ({
  /**
   * 公共上传
   */
   async upload () {
    const { ctx, service } = app
    const url = await service.common.upload()

    ctx.helper.success({ data: { url } })
  }
})